//
//  YsCloudFileManageSDKServer.m
//  YsCloudFileManageSDK
//
//  Created by 宋宏康 on 2020/2/24.
//  Copyright © 2020 YJTSuper. All rights reserved.
//

#import "YsCloudFileManageSDKServer.h"
#import "YsNetWorkManage.h"
#import <YYKit/YYKit.h>
#import "YsCloudFileUserManage.h"
#import "YsCloudFileManagerHeader.h"

static YsCloudFileManageSDKServer *cloudFileManageSDKServerManager = nil;

@implementation YsServerModel

@end

@implementation YsCloudFileManageSDKServer

+ (instancetype)shareCloudFileManageSDKServerManager
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        cloudFileManageSDKServerManager = [[self alloc] init];
    });
    return cloudFileManageSDKServerManager;
}

- (void)fetchUploadFetchWayWithfail:(void(^)(NSError *error))fail
{
    [YsNetWorkManage uploadFetchWayWithuid:kAccountCode success:^(YsResultModel *result) {
          NSLog(@"result---:%@",result);
          self.serverModel = [YsServerModel modelWithJSON:[result.data valueForKey:@"api"]];
    } fail:fail];
}
@end
